obj-m += khello.o


build-ko:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

ins-ko:
	sudo insmod khello.ko

rm-ko:
	sudo rmmod khello

info-ko:
	modinfo khello.ko

dmesg-watch:
	sudo dmesg #-c is optional

_voidlinux-test:
	sudo xbps-install linux-headers
	make
	make rm-ko
	make ins-ko
	make dmesg-watch
	make rm-ko
	make dmesg-watch
